#!/usr/bin/env ruby

require 'rubygems'
require 'sequel'

DB = Sequel.connect('sqlite://db/gpassword.db')

require 'lib/PasswordEntry.rb'

entry = PasswordEntry.create(:site => 'gronono.fr', :login => 'admin', :password => 'pass')


dataset = DB['select id from password_entries']
dataset.count # will return the number of records in the result set

puts dataset.count

